#include <iostream>
#include <cmath>
#include <iomanip>
#define MAXN 10005
#define INF 100005
using namespace std;
int N, K;
double lines[MAXN];
void solve();
int main() {
    cin >> N >> K;
    for (int i = 0; i < N; i++) cin >> lines[i];
    solve();
}

bool c(int l) {
    int res = 0;
    for (int i = 0; i < N; i++) {
        res += int(lines[i] / l);
    }
    return res >= K;
}

void solve() {
    double lower = 0, upper = INF;
    int i = 0;
    while (true) {
        i++;
        int middle = (lower + upper) / 2;
        if (c(middle)) {
            lower = middle;
        } else {
            upper = middle;
        }
        if (i > 100) break;
    }
    cout << fixed << setprecision(2) << lower << endl;
}